<?php 
include TMPL_PATH.'public/header.phtml';
?>

<div class="pad_10">
<div class="common-form">
<table width="100%" class="table_form contentWrap">
<tr>
<td width="80">评论人名称</td> 
<td><?php echo $shaidan['username'];?></td>
</tr>
<tr>
<td>评论商品</td>
<td><?php echo $shaidan['product_name'];?></td>
</tr>
<tr>
<td>评论标题</td>
<td><?php echo $shaidan['title'];?></td>
</tr>
<tr>
<td>评论内容</td>
<td><?php echo $shaidan['content'];?></td>
</tr>
<tr>
<td>评论人IP</td>
<td><?php echo $shaidan['ip'];?></td>
</tr>
<tr>
<td>评论时间</td>
<td><?php echo date('Y-m-d H:i:s', $shaidan['time']);?></td>
</tr>
<tr>
<td>审核状态</td>
<td><?php echo $shaidan['disabled'] ? '通过' : '未通过';?></td>
</tr>
<tr>
	<td>相关图片</td>
	<td>
	<?php 
		if($photoList):
			foreach ($photoList as $file):
	?>
				<span id="a<?php echo $file['fid'];?>" class="pic">
						<a href="<?php echo $file['img'];?>" target="_blank"><img name="img_name" <?php if(strpos($product['img'],$file['img'])!==false){?>class="current"<?php }?> style="margin: 5px; opacity: 1;" src="<?php echo $file['thumb']?>" onclick="focus_img('<?php echo $file['img'];?>',this)"></a>
					</span>
	<?php 
			endforeach;
		endif;
	?>
	</td>
</tr>
</table>

    <div class="bk15"></div>
</div>
</div>
</body>
</html>